<script setup>
import config from './config';
import { getToken } from '@/utils/auth';
import { useConfigStore } from '@/store';
import { getCurrentInstance } from 'vue';
import { onLaunch } from '@dcloudio/uni-app';

const { proxy } = getCurrentInstance();

onLaunch(async () => {
  initApp();
});

// 初始化应用
function initApp() {
  // 初始化应用配置
  initConfig();
}

function initConfig() {
  useConfigStore().setConfig(config);
}
</script>

<style lang="scss">
@import "@/static/scss/index.scss";
</style>
